package com.henu.main.entities;

import java.sql.Timestamp;

public class Metric {

    private String cluster;
    private String serviceName;
    private String metricName;
    private String hostname;
    private Timestamp timestamp;
    private Double value;

    @Override
    public String toString() {
        return "Metric{" +
                "cluster='" + cluster + '\'' +
                ", serviceName='" + serviceName + '\'' +
                ", metricName='" + metricName + '\'' +
                ", hostname='" + hostname + '\'' +
                ", timestamp=" + timestamp +
                ", value=" + value +
                '}';
    }

    public String getCluster() {
        return cluster;
    }

    public void setCluster(String cluster) {
        this.cluster = cluster;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getMetricName() {
        return metricName;
    }

    public void setMetricName(String metricName) {
        this.metricName = metricName;
    }

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public Timestamp getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public Metric(String cluster, String serviceName, String metricName, String hostname, Timestamp timestamp, Double value) {
        this.cluster = cluster;
        this.serviceName = serviceName;
        this.metricName = metricName;
        this.hostname = hostname;
        this.timestamp = timestamp;
        this.value = value;
    }

    public Metric() {
    }
}
